package demo;

public class Animal {
    public String name;
    public Animal(String name){
        this.name=name;
    }
    public void eat(){
        System.out.println(this.name+"正在吃饭");
    }
    public void bark() {
    }
}
